package com.u2ds.console.web.util;

import org.apache.shiro.subject.Subject;

import com.u2ds.core.constants.RoleConstants;

/**
 * @author ehtan.yuan
 * @createTime 2016-06-13 14:19
 * class description
 */
public class UrldistributeUtil {
	
	public static String distribute(Subject shiroSubject){
		if(null == shiroSubject || !shiroSubject.isAuthenticated()){
			return "login";
		}
		if(shiroSubject.hasRole(RoleConstants.MANAGER)){
			//管理界面
			return "manageIndex";
		}else{
			return "index";
		}
	}

}
